/**
* @file common.h
* @describe 定义一些公共的东西
* @author gaoyuelong
* @date 2022/1/15 
*/

#ifndef __COMMON_H_
#define __COMMON_H_

enum E_MESSAGE_TYPE {
    eUnknown = -1,
    eLogin = 0,
    eLoginAck,
    eRegister,
    eRegisterAck,
    eChatMsg
};

enum E_STATE {
    eTrue,
    eFalse
};

enum E_ERROR_TYPE {
    eNoError,
    eConnectionFail,	//连接失败
    ePasswordError		//密码错误
};

// #define ERROR -1
// #define NORMAL 0

const string strOnLine = "online";
const string strOffLine = "offline";
#endif